#!/usr/bin/python3

var1 = "Hello World!"
var2 = "Python Programming"

print ("var1[0]: ", var1[0])
print ("var2[1:5]: ", var2[1:5]) # 切片加索引

def strcat():
	return "shhshs"

def strcat2222():
	return "shhshs2222"


def my_strcat(str1, str2):
       return (str1+str2)


a = '我'
b = 'ab'
ab = '我ab'


def obj_len(obj):
   return len(obj)

print(len(a), len(b), len(ab), len('='))

git diff命令

